#include "shmget.hpp"
int main()
{
    key_t key = Get_key();
    int shmid = Create_Shm(key);
    char* buffer = (char*)At_Shm(shmid);
    while(true)
    {
        cout << "请输入对话->";
        sleep(1);
        fgets(buffer,1024,stdin);    
    }
    Del_Shm(shmid);
    return 0;
}